<template>
	<view>
		<view class="icon">
			<image src="/static/img/success.png"></image>
		</view>
		<view class="tis">
			订单支付成功
		</view>
		<view class="pay-amount">
			支付金额:{{amount}}元
		</view>
		<view class="back"> 
			<view class="btn2" @tap="toOrderSign(ofId)">签名</view>
			<view class="btn" @tap="toIndex">返回</view>
		</view>
	</view>
</template>

<script>
	import {
		customerPageJumps
	} from "../crm_page_jumps.js";
	export default {
		mixins: [customerPageJumps], 
		data() {
			return {
				ofId:0,
				amount:0
			};
		},
		onLoad(e) {
			this.amount = parseFloat(e.amount).toFixed(2);
			this.ofId = e.ofId;
		},
		methods: {
			toIndex() {
				console.log("-------2------1--2132134")
				uni.reLaunch({
					url:'/pages/index/index' 
				}) 
			} 
		},
	}
</script>

<style lang="scss">
	view{
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
.icon{
	width: 100%;
	margin-top: 10vw;
	image{
		width: 25vw;
		height: 25vw;
	}
}
.tis{
	width: 100%;
	margin-top: 20upx;
	font-size: 48upx;
}
.pay-amount{
	width: 100%;
	margin-top: 10upx;
	font-size: 32upx;
}
.back{
	position: absolute;
	width: 100%;
	bottom: 80upx;
	.btn2{
		padding: 0 50upx;
		margin: 20rpx;
		height: 70upx;
		background-color:  #f06c7a;
		color: #fff;
		align-items: center;
		border-radius: 10upx;
		font-size: 34upx;
	}
	.btn{
		padding: 0 50upx;
		margin: 20rpx;
		height: 70upx;
		border: solid 2upx #f06c7a;
		color: #f06c7a;
		align-items: center;
		border-radius: 10upx;
		font-size: 34upx;
	}
}
</style>
